<!--{template meta}-->
<style>
.newattention .current:after {
    content: "";
    position: absolute;
    bottom: 0px;
    width: .8rem;
    left: .52rem;
    border-bottom: solid 1px #ff973c;
}
</style>
 <div class="m_search userspaceheader">

    <div class="weui-flex newattention">
      
        <div class="weui-flex__item "> <span class="ws_h_title"><a href="{url new/default}">问答</a></span></div>
       
         <div class="weui-flex__item current"> <span class="ws_h_title"><a href="{url topic/default}">文章</a></span></div>
    </div>
</div>

                        <!--最新文章-->
    <div class="">



          <div class="qlists">
      <!--{loop $topiclist $index $topic}-->   
    <!--多图文-->
<div class="qlist">
<div class="title weui-flex">
    <div>
   
        <img src="{$topic['avatar']}">
        
    </div>
    <div class="weui-flex__item">

          <span class="author">{$topic['author']}   {if $topic['author_has_vertify']!=false}
        <i class="fa fa-vimeo {if $topic['author_has_vertify'][0]=='0'}v_person {else}v_company {/if}  " data-toggle="tooltip" data-placement="right" title=""  ></i>{/if}
         </span>
       
          
    </div>

</div>
    <p class="qtitle"><a href="{url topic/getone/$topic['id']}">{$topic['title']}</a></p>
   
   {if count($topic['images'][1])>0}  
<div class="weui-flex">
 {if count($topic['images'][1])>1}
 {loop  $topic['images'][1] $index $img}
 {if  $index<=2}
    <div class="weui-flex__item"><div class="imgthumbsmall"> <a href="{url topic/getone/$topic['id']}"><img src="{$img}"></a></div></div>
    {/if}
 {/loop}
 {else}
  {if $topic['image']!=null&&count($topic['images'][1])<=1}
  {loop  $topic['images'][1] $index $img}
   <div class="weui-flex__item"><div class="imgthumbbig"><a href="{url topic/getone/$topic['id']}"><img src="{$img}"></a></div></div>
   {/loop}
  {/if}
 {/if}
</div>
 {/if}
<p class="description">
 <a href="{url topic/getone/$topic['id']}" style="color:#333"> 
      {if $topic['price']!=0}
                                              <div class="box_toukan ">
  {eval echo clearhtml($topic['freeconent'],50);}
  {if $topic['readmode']==2}
  
											<a  class="thiefbox font-12" ><i class="icon icon-lock font-12"></i> &nbsp;更多阅读需支付&nbsp;$topic['price']&nbsp;&nbsp;积分……</a>

   {/if}
        {if $topic['readmode']==3}		                      
											<a  class="thiefbox font-12" ><i class="icon icon-lock font-12"></i> &nbsp;更多阅读需支付&nbsp;$topic['price']&nbsp;&nbsp;元……</a>

		                    {/if}
										</div>
                   {else}
                   {eval echo clearhtml($topic['describtion'],50);}

                    {/if}
                    </a>
</p>
    <p class="meta">
       <span>
          <i class="icon_huida"></i>{$topic['articles']}
       </span>
        <span>
           <i class="icon_liulan"></i> {$topic['views']}
       </span>
               <span class="fr_gengduo" onclick="shownoview(this)">
           <i class="icon_more"></i> 
       </span>
       <div class="noview hideel" dataid="{$topic['id']}" onclick="hidecontent(this)">
       不感兴趣
       </div>
    </p>
</div>
   
   
  <!--{/loop}-->
</div>
             <div class="pages" style="margin-bottom:15px;">{$departstr}</div>
        </div>

<div class="bottomspan">

</div>
<script type="text/javascript">
var noviewarr = [];
if(localStorage.getItem('tnoview')){
	noviewarr = JSON.parse(localStorage.getItem('tnoview'));
}


function shownoview(target){
	$(".hideel").hide();
	$(target).parent().parent().find(".hideel").toggle();
}
function hidecontent(target){
	
	var _id=$(target).attr("dataid");
	noviewarr.push(_id);
	localStorage.setItem('tnoview',JSON.stringify(noviewarr));
	$(target).parent().remove();
}

$(".noview").each(function(){
	
	var _id=$(this).attr("dataid");
	for(var i=0;i<noviewarr.length;i++){
        if(noviewarr[i]==_id){
        	$(this).parent().remove();
            }
	}
});
</script>
<!--{template footer}-->